﻿#region 命名空间

using System;

#endregion

namespace Sharp.Infrastructure
{
    /// <summary>
    ///     表示继承于该接口的类型是领域实体类。
    /// </summary>
    public interface IEntity : IEntity<Guid>
    {
    }
    /// <summary>
    /// 表示继承于该接口的类型是领域实体类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IEntity<T> where T : struct
    {
        /// <summary>
        /// Id
        /// </summary>
        T Id { get; set; }
    }
}